import { PageLoading } from '@cscec/udp-mobile-ui';
import { CSSProperties } from 'react';

export default function Loading({ loading = true, style }: { loading?: boolean; style?: CSSProperties }) {
  return loading ? (
    <div style={style}>
      <PageLoading />
    </div>
  ) : null;
}
